package com.fishingwithme.controllers;

import com.fishingwithme.infrastructure.dtos.UserDto;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Content;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.responses.ApiResponses;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/main")
@Tag(name = "Main Controller", description = "Main application endpoints")
public class MainController {

    @GetMapping("/login")
    @Operation(
            summary = "Login endpoint",
            description = "Main login endpoint that returns a UserDto object"
    )
    @ApiResponses(value = {
            @ApiResponse(
                    responseCode = "200",
                    description = "Login response returned successfully",
                    content = @Content(
                            mediaType = "application/json",
                            schema = @Schema(implementation = UserDto.class)
                    )
            )
    })
    public @ResponseBody UserDto login() {
        return new UserDto();
    }
}
